$(function(){
	$("form.step3").validate({
		rules: {
			password: 'required'
		},
		messages: {
			password: {
				required: "请输入新密码"
			}
		}
	});
	
	$('.js_pwd').click(function(){
		$('.js_pwd').toggleClass('hidden');
		var password = $('form.step3 input[name=password]');
		var pass = document.createElement('input');
		pass.type = password.attr('type') == 'password' ? 'text' : 'password';
		pass.name = 'password';
		pass.value = password.val();
		pass.className = "form-control";
		pass.id = "password";
		pass.autocomplete = "off";
		password.parent().prepend(pass);
		password.remove();
	});
});